<?php

swoole_timer_tick(100,function (){

    $redis=new Redis;
    $redis->pconnect('127.0.0.1',6379);
    var_dump($redis->lPush('key',time()));
});